package com.antu.first.service;

import com.antu.first.bean.Indent;
import com.antu.first.bean.User;
import com.antu.first.dto.IndentOperationExecution;

import java.util.Date;

/**
 * 订单管理逻辑层
 * Created by Administrator on 2018/3/5.
 */

public interface IndentService {

    /**
     * 新增订单
     * @param indent
     * @return
     */
    public IndentOperationExecution insertIndent(Indent indent);

    /**
     * 根据条件获取订单列表，用于向用户展示
     * @param start
     * @param end
     * @param indent
     * @param pageIndex
     * @return
     */
    public IndentOperationExecution queryIndentList(Date start, Date end, Indent indent, int pageIndex);

    /**
     * 确认用户入住，即修改订单状态
     * @param iId
     * @param iSequence
     * @return
     */
    public IndentOperationExecution checkInHotel(int iId, String iSequence, String checkCode);

    /**
     * 处理用户退房请求
     * @param iId
     * @param iSequence
     * @return
     */
    public IndentOperationExecution checkOutHotel(int iId, String iSequence);

    /**
     * 移动端根据用户编号查询订单
     * @param user
     * @return
     */

    public IndentOperationExecution getIndentListByIUserd(User user);

    /**
     * 搜索订单信息
     * @param uId
     * @param iStatus
     * @param pageIndex
     * @return
     */
    public IndentOperationExecution queryIndents(int uId, int iStatus, int pageIndex);
}
